get Cost Per Share Value
Compute the cost per share, avoiding a divide by zero fault (returns zero if no shares).
Return
The cost per share as a double precision floating point.
Parameters
sec
The security account the shares belong to.
shares
The number of shares, in the security currency.
cost
The total cost, in the parent investment account's currency.